<?php
/**
 * Created by PhpStorm.
 * User: Guangpen Chen
 * Date: 2014-12-01
 * Time: 16:40
 */
define('PC', 1);
include '/var/www/html/new/com.inc.php';
include 'shop_cache.php';
if ($_SESSION['sid'] && ($_SESSION['dtype']==0 ||
        $_SESSION['dtype']==1 || $_SESSION['dtype']==6)) {
    define('APPLY_DID', $_SESSION['sid']);
} else {
    define('APPLY_DID', $shop['fid']);
}
$sql_get_ac = "SELECT account FROM pft_member where id=" . APPLY_DID . " LIMIT 1";
$GLOBALS['le']->query($sql_get_ac);
$GLOBALS['le']->fetch_assoc();
$ac = $GLOBALS['le']->f('account');
//print_r($_SESSION);
//exit;
if (!$_SESSION['apply_did']) {
    $_SESSION['apply_did'] = $shop['fid'];
}

$site_title = isset($site_title) ? $site_title :$shop['M_name'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width; initial-scale=1.0" />
    <title><?=$site_title;?></title>
    <link rel="stylesheet" type="text/css" href="http://www.12301.cc/shops/css/default.css"/>
    <link rel="stylesheet" type="text/css" href="http://www.12301.cc/shops/css/index.css"/>
    <link href="http://www.12301.cc/shops/css/style.css" rel="stylesheet" />
    <script src="http://www.12301.cc/js/jquery-1.9.1.min.js"></script>
</head>
<body>
<div id="mask"></div>
<!--头部-->
<div class="header">
    <div class="head">
        <div class="logo">
            <span><img src="<?=strpos($shop['M_logo2'], 'http')===false ? 'http://www.12301.cc/'.$shop['M_logo2']:$shop['M_logo2']?>" /></span>
        </div>
        <div class="righed">
            <a href="#"><img src="images/head_rigimg.png" /></a>
        </div>
    </div>
</div>
<div class="index-nav">
    <div class="index-nav-con">
        <a class="myorder" href="#">订单查询</a>
        <ul>
            <li><a href="/new/d/shops/" class="nav-on">首页</a>  </li>
            <li><a href="#">景点门票</a> <span class="hot"></span> </li>
            <li><a href="#">周边游</a> <span class="hot"></span> </li>
        </ul>
    </div>
</div>